package com.neusoft.resturant.controller;

import com.neusoft.resturant.entity.Student;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")

public class FirstController {

    //  
@GetMapping("/student/show")
    public Student show(){
    System.out.println("学生介绍");
        Student student= new Student();
        student.setSno("21001010934");
        student.setName("郑子佳");
        student.setSex("女");
        return student;
    }

}
